package com.hitqz.robot.api.business.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;


/**
 * @author wengyx
 * @date 2024/8/7
 * 检测结果
 */
@Data
public class PatrolResultNewVo {
    @Schema(description = "工单id")
    private Long ticketsId;

    @Schema(description = "工单名称")
    private String ticketsName;

    @Schema(description = "任务状态：0--未执行 1-执行中 2-暂停中 3--停止 4-完成")
    private Integer ticketsStatus;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @Schema(description = "检测项总数")
    private Integer totalItemNum;
    @Schema(description = "待检测项数")
    private Integer waitItemNum;
    @Schema(description = "检测项正常数")
    private Integer normalItemNum;
    @Schema(description = "检测项异常数")
    private Integer abnormalItemNum;
    @Schema(description = "检测项视觉识别失败数")
    private Integer visionFailedItemNum;
}
